@{
    ViewBag.Title = "栏位管理";
}
@section head{
   <script type="text/javascript">
       $(document).ready(function () {
           $('.btnSearch').click(function () {
               mainSearch('.search_box :input');
           });
       });
       function on_close(key) {
           $('#details').datagrid('reload'); 
       }
       function onDeleteData() {
           $('#details').datagrid('reload');
       }
   </script>
}
@section body{
<body style="padding:@ViewBag.Padding">
<div class="easyui-layout" data-options="fit:true">
    <div region="north" border="false">
        <div class="navigation">
            <div class="left">
                @ViewBag.CurrentPath 栏位管理
            </div>
            <a href="javascript:CloseMe();" class="back">后退</a>
        </div>
        <div class="tools_box">
	        <div class="tools_bar">
                <div class="left">
                   <a href="javascript:show_fullscreen_dialog(serverUrl.add + '?DialogCode=@ViewBag.DialogCode' ,on_close,'add')" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true ">添加</a>  
                   <a href="javascript:DeleteSelecteds($('#details').datagrid('getSelections'),'id',onDeleteData)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true">批量删除</a>
                </div>
            </div>
            <div class="search_box">
			   
		    </div>
        </div>
    </div> 
    <div region="center" border="false">
        <table class="easyui-datagrid" id="details" data-options="fit:true,rownumbers:true,singleSelect:false,
          pagination:true,border:true,url:serverUrl.list,queryParams:{DialogCode:'@ViewBag.DialogCode'}">
           <thead data-options="frozen:true"> 
              <tr>
                   <th data-options="field:'ID',checkbox:true"></th>
                   <th data-options="field:'FieldKey',sortable:true,width:120">编号</th>
              </tr>
           </thead>
           <thead>  
               <tr>  
                   <th data-options="field:'Title',sortable:true,width:150">标题</th>
                   <th data-options="field:'Width',sortable:true,width:100">宽度</th>
                   <th data-options="field:'Sort',sortable:true,width:100">排序</th>
                   <th data-options="field:'IsShow',sortable:true,width:100,formatter:boolformat">是否显示</th>
                   <th data-options="field:'IsResult',width:100,formatter:boolformat">返回值</th>
                   <th data-options="field:'cmd',width:100,align:'center',formatter:IDcmdformat">操作</th>
               </tr>  
           </thead>  
        </table>
    </div>
</div>
</body>
}